* {
  text-decoration: none;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  background: #ecf0f3;
  display: flex;
  align-items: center;
  text-align: center;
  place-items: center;
  overflow: hidden;
  font-family: sans-serif;
}

.xchatDiv {
  width: 95%;
  max-width: 1024px;
  height: 95%;
  background: #ecf0f3;
  padding: 2%;
  border-radius: 20px;
  box-sizing: border-box;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
  position: absolute;
  /*居中显示*/
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.xsessionDiv {
  width: 200px;
  height: 800px;
  background: #ecf0f3;
  padding: 20px;
  border-radius: 20px;
  box-sizing: border-box;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
  position: absolute;
  /*居中显示*/
  top: 0;
  bottom: 0;
  left: 0;
  right: 1300px;
  margin: auto;
}

.xuserDiv {
  width: 200px;
  height: 800px;
  background: #ecf0f3;
  padding: 20px;
  border-radius: 20px;
  box-sizing: border-box;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
  position: absolute;
  /*居中显示*/
  top: 0;
  bottom: 0;
  right: 0;
  left: 1300px;
  margin: auto;
}

.logo {
  height: 100px;
  width: 100px;
  background-size: 160px;
  background-position: -30px;
  margin: auto;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 7px 7px 10px #cbced1, -7px -7px 10px white;
}

.icon {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 1.6rem;
  color: #1da1f2;
  letter-spacing: 1px;
}

/*输入部分*/
.inputs {
  text-align: left;
  margin-top: 30px;
}

label,
input,
button {
  display: block;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
}

label {
  margin-bottom: 4px;
  font-size: 16px;
}

label:nth-of-type(2) {
  margin-top: 14px;
}

input {
  background: #ecf0f3;
  padding: 10px;
  padding-left: 20px;
  font-size: 15px;
  border-radius: 50px;
  height: 50px;
  box-shadow: inset 6px 6px 6px #cbced1, inset -6px -6px 6px white;
}

input::placeholder {
  color: gray;
}

button {
  background: #1da1f2;
  color: white;
  height: 50px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  font-family: sans-serif;
  letter-spacing: 1px;
  box-shadow: 6px 6px 6px #cbced1, -6px -6px 6px white;
}
button:hover {
  box-shadow: none;
}

.line {
  color: #1da1f2;
  font-size: 13px;
  letter-spacing: 0.2px;
  margin-top: 15px;
}

#dot {
  vertical-align: super;
  font-weight: 600;
}

.xchatItem_left {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 20px;
}

.xchatItem_right {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.leftIcon{
    margin-right: 15px;
}

.rightIcon{
    margin-left: 15px;
}

.rightItemBg{
    background: #95ec69!important;
    box-shadow: inset 6px 6px 6px rgba(109, 186, 83, 0.99), inset -6px -6px 6px rgba(165, 255, 108, 0.83)!important;
}

.send{
  display: flex;
  width: 98%;
  height: 5%;
  position:absolute;
  bottom:25px;
}

.messageValue{
  width: 78%;
}

.sendBtn{
  width: 17%;
  margin-left: 2%;
}

.messageDiv{
  height: 90%;
  border-radius: 20px;
  overflow-y: auto;
}

/* 整个滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* 滚动条上的滚动滑块 */
::-webkit-scrollbar-thumb {
  background-color: #49b1f5;
  /* 关键代码 */
  background-image: -webkit-linear-gradient(45deg,
  rgba(255, 255, 255, 0.4) 25%,
  transparent 25%,
  transparent 50%,
  rgba(255, 255, 255, 0.4) 50%,
  rgba(255, 255, 255, 0.4) 75%,
  transparent 75%,
  transparent);
  border-radius: 32px;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background-color: #dbeffd;
  border-radius: 32px;
}


.xsessionIcon {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  padding: 0px 10px;
}

.xsessionName {
  font-size: 18px;
  font-weight: 500;
  padding-top: 3px;
}

.xsessionItem{
  display: flex;
  background: #ecf0f3;
  padding: 15px;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
  cursor: pointer;
  margin-bottom: 15px;
}

.xsessionItem-checked{
  background: rgba(203, 232, 243, 0.49);
}

.xsessionItem:hover{
  background: rgba(203, 232, 243, 0.49);
}

.xuserIcon {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  padding: 0px 10px;
}

.xuserName {
  font-size: 18px;
  font-weight: 500;
  padding-top: 3px;
}

.xuserItem{
  display: flex;
  background: #ecf0f3;
  padding: 15px;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
  cursor: pointer;
  margin-bottom: 15px;
}

.messageDivBg{
  background: #ecf0f3;
  padding: 20px;
  padding-left: 20px;
  border-radius: 30px;
  height: auto;
  text-align: start;
  box-shadow: inset 6px 6px 6px #cbced1, inset -6px -6px 6px white;
}

.loadingImg{
  position: absolute;
  width: 35px;
  right: 6%;
  bottom: 145%;
  display: none;
}